package com.ruoyi.web.controller.app.pay.alipay.service;

import com.alibaba.fastjson.JSONException;
import com.alipay.api.AlipayApiException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;

/**
 * 扫码支付以及手机H5支付
 */
public interface IAliPayService {

	/**
	 * APP支付
	 * @return  String
	 *
	 */
	String appPay(String uid, Long orderId) throws JSONException,UnsupportedEncodingException, org.codehaus.jettison.json.JSONException;


    /**
     * 回调
     * @param request
     * @param response
     * @throws AlipayApiException
     * @throws JSONException
     * @throws UnsupportedEncodingException
     */
    void notifyUrl(HttpServletRequest request, HttpServletResponse response)throws AlipayApiException, JSONException, UnsupportedEncodingException, org.codehaus.jettison.json.JSONException;

}
